﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="POD.aspx.cs" Inherits="WMS6.Web.TransportManagement.POD" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>POD</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script  src="../Js/checkbox.js" type="text/javascript"></script>
    <base target="_self" />   
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newTracking()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "POD.aspx?from="+from;
            return false;
        }
        
        //弹出窗口选择提货地址
        function selectBolDetail()
        {
            var rtnValue = popModalWindow('../TransportManagement/BolDetailQuery.aspx?action=txtBolID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtBolID").focus();
                document.getElementById("txtBolID").value = rtnValue;
            }
        }
        
        //上传POD图片
        function UpLoadPOD()
        {
            var lang = self.parent.frames['banner'].document.getElementById("hdnPerfLanguage").value;
            var style = self.parent.frames['banner'].document.getElementById("henPerfStyle").value;
           var rtnValue =  window.showModalDialog('../TransportManagement/FileUploads.aspx?filepath=\\pod/&originalpath=OriginalImage/&thumbnailpath=ThumbnailImage/&width=160&height=98',lang+','+style,'dialogWidth=810px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
           document.getElementById("hdnPODImg").value =  rtnValue;
           if(rtnValue != null && rtnValue != "")
           {
                __doPostBack("btnUpLoadPOD_Click","");
           }
        }
        
         function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
    </script> 
</head>
<body>
    <form id="F8051" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="POD" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False"  
                            CausesValidation="False" onclick="btnGoBack_Click" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" Enabled="False" 
                            AccessKey="s" onclick="btnSave_Click" 
                             /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>" 
                            Enabled="False"  AccessKey="d" 
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click"   /></td>
                    <td>
                        <asp:Button ID="btnConfirm" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnConfirm%>" 
                            OnClick="btnConfirm_Click"  Enabled="False"  />
                    </td>
                    <td>
                        <asp:Button ID="btnUpLoadPOD" runat="server" CssClass="button" Text="POD上传"  OnClick="btnUpLoadPOD_Click"
                            OnClientClick="UpLoadPOD();" meta:resourcekey="btnUpLoadPOD" Enabled="False"  />
                    </td>
                </tr>
            </table>
        </div>
        
<%--        <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>--%>
                    <div>
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                            meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    
                    <div id="div_menu">
                        <div style="float: left; width: 8px;">
                            <div class="tabL" id="divL1"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)" id="divM1">
                            <asp:Label ID="one1" CssClass="hover" runat="server" 
                                meta:resourcekey="one1">常规</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR" id="divR1"></div>
                        </div>
                        
                        <div style="float: left; width: 8px;">
                            <div class="tabL_1" id="divL2"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4);" id="divM2">
                            <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                                meta:resourcekey="one2">&nbsp;收货信息&nbsp;</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR_1" id="divR2"></div>
                        </div>
                        
                        <div style="float: left; width: 8px;">
                            <div class="tabL_1" id="divL3"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4);" id="divM3">
                            <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                                meta:resourcekey="one3">&nbsp;自定义&nbsp;</asp:Label></div>
                        <div style="float: left; margin-right: 3px;">
                            <div class="tabR_1" id="divR3"></div>
                        </div>
                        
                        <div style="float: left; width: 8px;">
                            <div class="tabL_1" id="divL4"></div>
                        </div>
                        <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4);" id="divM4">
                            <asp:Label ID="one4" CssClass="navigationlabel" runat="server" 
                                meta:resourcekey="one4">&nbsp;明细&nbsp;</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR_1" id="divR4"></div>
                        </div>
                        
                        
                   </div>
                   
                   
                    <div id="div_content">
                        <div id="con_one_1" style="display:block;">
                            <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                <tr>
                                    <td><asp:Label ID="lblPodID" runat="server" CssClass="label" Text="POD ID" 
                                            meta:resourcekey="lblPodID"></asp:Label></td>
                                    <td><asp:Label ID="lblBolDetailID" runat="server" CssClass="label" Text="装车单ID" 
                                            meta:resourcekey="lblBolDetailID"></asp:Label></td>
                                    <td><asp:Label ID="lblCarrierID" runat="server" CssClass="label" Text="承运商" 
                                            meta:resourcekey="lblCarrierID"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td><asp:TextBox ID="txtPodID" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtPodID"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtBolDetailID" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtBolDetailID"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtCarrierID" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtCarrierID"></asp:TextBox></td>
                                </tr>
                                
                                <tr>
                                    <td><asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主" 
                                            meta:resourcekey="lblOwnerID"></asp:Label></td>
                                    <td><asp:Label ID="lblEquipmentID" runat="server" CssClass="label" Text="车辆" 
                                            meta:resourcekey="lblEquipmentID"></asp:Label></td>
                                    <td><asp:Label ID="lblDriver" runat="server" CssClass="label" Text="司机" 
                                            meta:resourcekey="lblDriver"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td><asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtOwnerID"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtEquipmentID" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtEquipmentID"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtDriver" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtDriver"></asp:TextBox></td>
                                </tr>
                                
                                <tr>
                                    <td><asp:Label ID="lblExpectArriverDate" runat="server" CssClass="label" 
                                            Text="预计到货时间" meta:resourcekey="lblExpectArriverDate"></asp:Label></td>
                                    <td><asp:Label ID="lblSignedDate" runat="server" CssClass="label" Text="签收时间" 
                                            meta:resourcekey="lblSignedDate"></asp:Label><font class="must_input">*</font></td>
                                    <td><asp:Label ID="lblSignedBy" runat="server" CssClass="label" Text="签收人" 
                                            meta:resourcekey="lblSignedBy"></asp:Label><font class="must_input">*</font></td>
                                </tr>
                                <tr>
                                    <td><asp:TextBox ID="txtExpectArriverDate" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtExpectArriverDate"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtSignedDate" runat="server" CssClass="textbox"  
                                            onblur="Javascript:dataVer._IsTime(this,'lblMsg')" 
                                            meta:resourcekey="txtSignedDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtSignedDate)"/></td>
                                    <td><asp:TextBox ID="txtSignedBy" runat="server" CssClass="textbox" 
                                            meta:resourcekey="txtSignedBy"></asp:TextBox></td>
                                </tr>
                                
                                <tr>
                                    <td><asp:Label ID="lblStatus" runat="server" CssClass="label" Text="POD 状态" 
                                            meta:resourcekey="lblStatus"></asp:Label></td>
                                    <td><asp:Label ID="lblTransportMode" runat="server" CssClass="label" Text="运输方式" 
                                            meta:resourcekey="lblTransportMode"></asp:Label></td>
                                    <td><asp:Label ID="lblPickUpType" runat="server" CssClass="label" Text="提货方式" 
                                            meta:resourcekey="lblPickUpType"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <%--<asp:TextBox ID="txtStatus" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>--%>
                                        <asp:DropDownList ID="ddlStatus" runat="server"  CssClass="mediumselectbox" 
                                            Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <%--<asp:TextBox ID="txtTransportMode" runat="server" CssClass="textbox"></asp:TextBox>--%>
                                        <asp:DropDownList ID="ddlTransportMode" runat="server" 
                                            CssClass="mediumselectbox" Enabled="False" 
                                            meta:resourcekey="ddlTransportMode"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <%--<asp:TextBox ID="txtPickUpType" runat="server" CssClass="textbox"></asp:TextBox>--%>
                                        <asp:DropDownList ID="ddlPickUpType" runat="server" CssClass="mediumselectbox" 
                                            Enabled="False" meta:resourcekey="ddlPickUpType"></asp:DropDownList>
                                    </td>
                                </tr>
                                
                                <tr style="height:50px;">
                                    <td></td>
                                </tr>
                               
                            </table>
                            <table style="margin-left:10px; margin-bottom:10px;">
                                <tr>
                                    <td style="width:180px;"><asp:Image ID="Image1" runat="server" Visible="False" 
                                            meta:resourcekey="Image1" /></td>
                                    <td style="width:180px;"><asp:Image ID="Image2" runat="server" Visible="False" 
                                            meta:resourcekey="Image2" /></td>
                                    <td style="width:180px;"><asp:Image ID="Image3" runat="server" Visible="False" 
                                            meta:resourcekey="Image3" /></td>
                                    <td style="width:180px;"><asp:Image ID="Image4" runat="server" Visible="False" 
                                            meta:resourcekey="Image4" /></td>
                                    <td style="width:180px;"><asp:Image ID="Image5" runat="server" Visible="False" 
                                            meta:resourcekey="Image5" /></td>
                                    <td style="width:180px;"><asp:Image ID="Image6" runat="server" Visible="False" 
                                            meta:resourcekey="Image6" /></td>
                                </tr>
                            </table>
                        </div>
                        <div id="con_one_2" style="display:none;">
                            <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                <tr>
                                    <td><asp:Label ID="lblCustomerID" runat="server" CssClass="label" Text="客户代码" 
                                            meta:resourcekey="lblCustomerID"></asp:Label></td>
                                    <td><asp:Label ID="lblCustomerName" runat="server" CssClass="label" Text="客户名称" 
                                            meta:resourcekey="lblCustomerName"></asp:Label></td>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td><asp:TextBox ID="txtCustomerID" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtCustomerID"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtCustomerName" runat="server" CssClass="textbox" 
                                            Enabled="False" meta:resourcekey="txtCustomerName"></asp:TextBox></td>
                                    <td>&nbsp;</td>
                                </tr>
                                
                                <tr>
                                    <td><asp:Label ID="lblContact" runat="server" CssClass="label" Text="联系人" 
                                            meta:resourcekey="lblContact"></asp:Label></td>
                                    <td><asp:Label ID="lblCPhone" runat="server" CssClass="label" Text="电话" 
                                            meta:resourcekey="lblCPhone"></asp:Label></td>
                                    <td><asp:Label ID="lblCAddress" runat="server" CssClass="label" Text="客户地址" 
                                            meta:resourcekey="lblCAddress"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td><asp:TextBox ID="txtContact" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtContact"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtCPhone" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtCPhone"></asp:TextBox></td>
                                    <td><asp:TextBox ID="txtCAddress" runat="server" CssClass="textbox" Enabled="False" 
                                            meta:resourcekey="txtCAddress"></asp:TextBox></td>
                                </tr>
                                
                                
                                <tr style="height:10px;">
                                    <td></td>
                                </tr>
                                
                             </table>
                        </div>
                        <div id="con_one_3" style="display:none;">
                            <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                    <tr>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text ="自定义字段01" 
                                                meta:resourcekey="lblUdf1"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text ="自定义字段06" 
                                                meta:resourcekey="lblUdf6"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="制单人" 
                                                meta:resourcekey="lblCreatedBy"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf1"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf6"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="False" 
                                                CssClass="textbox" meta:resourcekey="txtCreatedBy"></asp:TextBox>
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text ="自定义字段02" 
                                                meta:resourcekey="lblUdf2"></asp:Label>
                                        </td>
                                        <td width="180px">
                                             <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text ="自定义字段07" 
                                                 meta:resourcekey="lblUdf7"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="制单日期" 
                                                meta:resourcekey="lblCreatedDate"></asp:Label>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf2"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf7"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtCreatedDate" runat="server" Enabled="False" 
                                                CssClass="textbox" meta:resourcekey="txtCreatedDate" ></asp:TextBox>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" 
                                                meta:resourcekey="lblUdf3" ></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" 
                                                meta:resourcekey="lblUdf8"></asp:Label>
                                        </td>
                                        <td><asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                                                meta:resourcekey="lblRemark"></asp:Label></td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf3"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf8"></asp:TextBox>
                                        </td>
                                        <td width="360px" colspan="2" rowspan="3">
                                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                                Enabled="False" TextMode="MultiLine" meta:resourcekey="txtRemark"  ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" 
                                                meta:resourcekey="lblUdf04"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" 
                                                meta:resourcekey="lblUdf09"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf4"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf9"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" 
                                                meta:resourcekey="lblUdf5"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" 
                                                meta:resourcekey="lblUdf10"></asp:Label>
                                        </td>
                                        <td width="180px">
                                            &nbsp;
                                        </td>
                                        <td width="180px">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf5"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" Enabled="False" 
                                                meta:resourcekey="txtUdf10"></asp:TextBox>
                                        </td>
                                        <td width="180px">
                                            &nbsp;
                                        </td>
                                        <td width="180px">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr style="height:10px;"><td colspan="4"></td></tr>
                                </table>
                        </div>
                        <div id="con_one_4" style="display:none;">
                                
                                <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                 <tr>
                                     <td>
                                        <table>
                                            <tr>
                                                <%--<td>
                                                    <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="false" Text="新增" 
                                                    
                                                        OnClientClick="javascript:if(document.getElementById('hdnDeliveryOrderID').value == ''){ SethdnPageQty('hdnPageQty');  if(confirm('入库通知单主信息尚未保存,是否继续,继续则自动保存主信息.')) return true; else return false;}" 
                                                        onclick="btnAddDetail_Click"   />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="false" Text="删除"
                                                     
                                                        OnClientClick="javascript:if(confirm('确定要删除这几条明细吗?')) return true; else return false;" 
                                                        onclick="btnDeleteDetail_Click"  />
                                                </td>--%>
                                                <td></td>
                                            </tr>
                                        </table>
                                     </td>
                                 </tr>  
                                 <tr style="height:10px;">
                                    <td></td>
                                    <td></td>
                                 </tr>
                                    
                                 <tr>
                                    <td>
                                        <div>
                                            <asp:GridView ID="gvPodDetail" runat="server" AllowSorting="True" 
                                            AutoGenerateColumns="False"   AllowPaging="True" 
                                            CssClass="gridview"  
                                                DataKeyNames="PodID,LineID,OwnerID,SkuID,PackID,BolLineID,DeliveryID,DeliveryLineID" 
                                                Width="1200px" onrowdatabound="gvPodDetail_RowDataBound" 
                                                meta:resourcekey="gvPodDetail" >
                                                <FooterStyle CssClass="GridViewFooterStyle" />
                                                <RowStyle CssClass="GridViewRowStyle" />
                                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                  <PagerStyle CssClass="GridViewPageStyle" />
                                                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                                <Columns>
                                                    <asp:BoundField HeaderText="序号" FooterText="序号" 
                                                        meta:resourcekey="BoundField"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>
                                                    <asp:TemplateField meta:resourcekey="TemplateField">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="CheckBox1" runat="server" 
                                                                onclick="selectAll(this,'gvPodDetail');" 
                                                                meta:resourcekey="CheckBox1" /> 
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chbSelect" runat="server" 
                                                                meta:resourcekey="chbSelect" />
                                                        </ItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:CheckBox ID="CheckBox2" runat="server" 
                                                                onclick="selectAll(this,'gvPodDetail');" 
                                                                meta:resourcekey="CheckBox2" /> 
                                                        </FooterTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                                                        <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="货主" 
                                                        SortExpression="LineID" meta:resourcekey="LineID"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>          
                                                    <asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" 
                                                        SortExpression="OwnerID" meta:resourcekey="OwnerID"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>          
                                                    <asp:BoundField DataField="skuID" HeaderText="货品代码" FooterText="货品代码" 
                                                        SortExpression="skuID" meta:resourcekey="skuID"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>          
<%--                                                    <asp:BoundField DataField="SkuName" HeaderText="货品名称" FooterText="货品名称" SortExpression="SkuName"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>          
--%>                                                    <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                                        SortExpression="PackID" meta:resourcekey="PackID"><ItemStyle CssClass="GridViewRowWidth_50" /></asp:BoundField>          
                                                                                                        
                                                    <asp:TemplateField FooterText="送货数量" HeaderText="送货数量" SortExpression="Qty" 
                                                        meta:resourcekey="Qty">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblQty" runat="server" CssClass="label" 
                                                                Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                                meta:resourcekey="lblQty"></asp:Label>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField FooterText="实收数量" HeaderText="实收数量" 
                                                        SortExpression="AcceptedQty" meta:resourcekey="AcceptedQty">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtAcceptedQty" runat="server" CssClass="textbox" Width="80px"
                                                                Text='<%# Eval("AcceptedQty").ToString() %>' 
                                                                onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" 
                                                                meta:resourcekey="txtAcceptedQty"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField FooterText="拒收数量" HeaderText="拒收数量" 
                                                        SortExpression="RejectedQty" meta:resourcekey="RejectedQty">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtRejectedQty" runat="server" CssClass="textbox" Width="80px"
                                                                Text='<%# Eval("RejectedQty").ToString() %>' 
                                                                onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" 
                                                                meta:resourcekey="txtRejectedQty"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField FooterText="丢失数量" HeaderText="丢失数量" SortExpression="LoseQty" 
                                                        meta:resourcekey="LoseQty">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtLoseQty" runat="server" CssClass="textbox" Width="80px"
                                                                Text='<%# Eval("LoseQty").ToString() %>' 
                                                                onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" 
                                                                meta:resourcekey="txtLoseQty"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField FooterText="破损数量" HeaderText="破损数量" 
                                                        SortExpression="BreakageQty" meta:resourcekey="BreakageQty">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtBreakageQty" runat="server" CssClass="textbox" Width="80px"
                                                                Text='<%# Eval("BreakageQty").ToString() %>' 
                                                                onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" 
                                                                meta:resourcekey="txtBreakageQty"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField FooterText="外包装破损数量" HeaderText="外包装破损数量" 
                                                        SortExpression="PkgBreakageQty" meta:resourcekey="PkgBreakageQty">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPkgBreakageQty" runat="server" CssClass="textbox" Width="80px"
                                                                Text='<%# Eval("PkgBreakageQty").ToString() %>' 
                                                                onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" 
                                                                meta:resourcekey="txtPkgBreakageQty"></asp:TextBox>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="GridViewRowWidth_50" />
                                                    </asp:TemplateField>
                                                    
                                                    <asp:BoundField DataField="Remark" HeaderText="备注" FooterText="备注" 
                                                        SortExpression="Remark" meta:resourcekey="Remark"><ItemStyle CssClass="GridViewRowWidth_100" /></asp:BoundField>
                                                    
                                                </Columns>
                                          </asp:GridView>
                                       </div>
                                   </td>
                                </tr>     
                                <tr style="height:30px;">
                                    <td></td>
                                 </tr>
                            </table>
                                
                        </div>
                    </div>
                    
<%--               </ContentTemplate>
        </asp:UpdatePanel>--%>
        
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnDataFormat"  runat="server"/>  
        <input type="hidden" id="hdncalendarFlag"  runat="server"/>
        <input type="hidden" id="hdnLineID" runat="server" />
        <input type="hidden" id="hdnPODImg" runat="server" />
        
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		    hiddenCalendarDiv();
		//-->
</script>
